<%-- 
    Document   : mostraCliente
    Created on : 23/01/2013, 16:11:55
    Author     : Alessandra
--%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Clientes</title>
    </head>
    <body>
        <h1>Lista de Clientes!</h1>
        <a href="cadCliente.jsp">Novo</a>&nbsp;&nbsp;
        <a href="index.jsp">Home</a>
        <div style="width: 500px; margin: 0px auto;">
            <table>
                <tr>
                    <th>ID - Alterar</th>
                    <th>Nome</th>
                    <th>Login</th>
                    <th>Senha</th>
                    <th>Perfil</th>
                    <th>Excluir</th>
                </tr>
                    <c:forEach var="usu" items="${requestScope.listaUsuarios}">   
                        <tr>
                            <td>
                                <a href="banana?cmd=palt&id=${usu.id}">Alterar</a>
                            </td>
                            <td>
                                ${usu.nome}
                            </td>
                            <td>
                                ${usu.login}
                            </td>
                            <td>
                                ${usu.senha}
                            </td>
                            <td>
                                ${usu.perfil}
                            </td>
                            <td>
                                <a href="banana?cmd=exc&id=${usu.id}">Excluir</a>
                            </td>
                        </tr>
                    </c:forEach>
            </table>
        </div>
    </body>
</html>